home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
dev
/
e
/
kyz_obj.lha
/
doc
/
datestring.doc
< prev
next >
Wrap
Text File
|
1998-10-18
|
1KB
|
42 lines
TABLE OF CONTENTS
datestring.m/--overview--
datestring.m/new
datestring.m/--overview-- datestring.m/--overview--
PURPOSE
To represent a textual form of the current date and time.
OVERVIEW
A very simple object that datestamps itself on creation, and
transforms that datestamp into a set of three strings, which are
accessable as the object attributes 'day', 'date' and 'time'.
datestring.m/new datestring.m/new
NAME
datefield.new() -- Constructor.
SYNOPSIS
new()
new(format)
FUNCTION
Initialises an instance of the datestring class.
INPUTS
format - the format the 'date' attribute will take:
format = 0, dd-mmm-yy (12-Feb-92)
format = 1, yy-mm-dd (92-02-12)
format = 2, mm-dd-yy (02-12-92)
format = 3, dd-mm-yy (12-02-92)
The default format is 0.
RESULT
The initialised instance now contains three readable attributes:
day - string representing the name of the day, eg 'Monday'
date - string representing the current date, eg '27-Feb-94'
time - string representing the current time, eg '12:34:56'